package com.itheima.mapper;

import com.itheima.entity.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author huangzelnag
 * @create 2022-05-09
 */
@Mapper
public interface EmployeeMapper {
    /**
     * 查询用户信息，返回条数
     * @param employee
     * @return
     */
    Employee selectByEmployee(Employee employee);


    Integer   selectCount  (String name);


    List<Employee> selectByPage(String name,Integer page,Integer pageSize);


    Integer selectByUsername(String username);


    Integer  insert(Employee employee);

    Integer   update(Employee employee);

    Employee  selectById(String id);



}
